package com.ruoyi.project.his.service.impl;
import com.ruoyi.project.his.domain.HisDept;
import com.ruoyi.project.his.mapper.HisDeptMapper;
import com.ruoyi.project.his.service.IHisDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HisDeptServiceImpl implements IHisDeptService {
    @Autowired
    private HisDeptMapper hisDeptMapper;

    @Override
    public List<HisDept> selectDeptList(HisDept hisdept) {
        return hisDeptMapper.selectDeptList(hisdept);
    }

    @Override
    public int insertPost(HisDept hisdept) {
        return hisDeptMapper.insertDept(hisdept);
    }

    @Override
    public int deleteDeptByIds(Long[] ids) {
        return hisDeptMapper.deleteDeptByIds(ids);
    }

    @Override
    public HisDept selectDeptById(Long deptId) {
        return hisDeptMapper.selectDeptById(deptId);
    }

    @Override
    public int updateDept(HisDept hisdept) {
        return hisDeptMapper.updateDept(hisdept);
    }
}
